<?php


namespace app\common\model;

use think\Model;

class system extends Basemodel
{

    /**
     * 显示所有信息
     * @param string $type
     */
    public function getnoteall($type = '')
    {
        $datas = [];
        if (!empty($type)) {
            $datas = ['type' => $type];
        }
        $system = $this->where($datas)->select();
        foreach ($system as $key => $value) {
            $data[$value['title']] = ['value' => $value['value'], 'miaoshu' => $value['miaoshu'], 'type' => $value['type']];
        }
        return $data;
    }

}